﻿using AutoTest.Domain.Enums;
using SqlSugar;

namespace AutoTest.Domain.Entities
{
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("t_xue" ,TableDescription = "靴")]
    public class Xue : AllBaseEntity
    {
        /// <summary>
        /// 主键Id
        /// </summary>
		[SugarColumn(IsPrimaryKey = true, ColumnName = "id", ColumnDescription = "主键Id")]
        public long Id { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        [SugarColumn(ColumnName = "code", ColumnDescription = "编码")]
        public string Code { get; set; } = string.Empty;
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(ColumnName = "period", ColumnDescription = "序号")]
        public long Period { get; set; }
        /// <summary>
        /// 总共轮次
        /// </summary>
        [SugarColumn(ColumnName = "round", ColumnDescription = "总共轮次")]
        public int Round { get; set; }
        /// <summary>
        /// 庄个数
        /// </summary>
        [SugarColumn(ColumnName = "zcount", ColumnDescription = "庄个数")]
        public int ZCount { get; set; }
        /// <summary>
        /// 闲个数
        /// </summary>
        [SugarColumn(ColumnName = "xcount", ColumnDescription = "闲个数")]
        public int XCount { get; set; }
        /// <summary>
        /// 庄最大连续个数
        /// </summary>
        [SugarColumn(ColumnName = "lzmax", ColumnDescription = "庄最大连续个数")]
        public int LZMax { get; set; }

        /// <summary>
        /// 闲最大连续个数
        /// </summary>
        [SugarColumn(ColumnName = "lxmax", ColumnDescription = "闲最大连续个数")]
        public int LXMax { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "create_user_id", ColumnDescription = "创建人")]
        public long CreateUserId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "create_user_name", ColumnDescription = "创建人")]
        public string CreateUserName { get; set; } = string.Empty;
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")]
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        [SugarColumn(ColumnName = "status", ColumnDescription = "状态")]
        public EnumStatus Status { get; set; } = EnumStatus.Disable;

        /// <summary>
        /// 删除标识
        /// </summary>
        [SugarColumn(ColumnName = "del_flag", ColumnDescription = "删除标识")]
        public bool DelFlag { get; set; } = false;
        /// <summary>
        /// 明细
        /// </summary>
        [Navigate(NavigateType.OneToMany, nameof(XueDetail.XueId))]
        public List<XueDetail>? Details { get; set; }
    }
}
